package model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@NoArgsConstructor
@AllArgsConstructor
@Data
/**
 * Item:0-充值 1-奖学金 2-水电费 3-住宿费 4-学费
 *amount:费用金额
 * accountTime:费用时间
 */
public class JournalAccount implements Serializable {
    private String Item;
    private Double amount;
    private String accountTime;
    private String aId;
    private String type;//为true表示收入，为false表示支出

    public JournalAccount(String item, Double amount, String accountTime, String aId) {
        Item = item;
        this.amount = amount;
        this.accountTime = accountTime;
        this.aId = aId;
        this.type = "false";
    }
}
